package com.commons.dbutils.util;


public enum AESEnum {
	ECB("ECB"),//aes默认算法
	CBC("CBC"),
	CFB("CFB"),
	OFB("OFB");
	
	AESEnum(String name){
		this.name=name;
	}
	public static AESEnum nameOfEnum(String name){
		for(AESEnum be:values()){
			if(be.getName().equals(name)){
				return be;
			}
		}
		return null;
	}
	private String name;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
}
